.class Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;
.super Landroid/os/Handler;
.source "SpecialAritcleTwo.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/SpecialAritcleTwo;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    .line 704
    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;)Lcom/netease/newsreader/activity/SpecialAritcleTwo;
    .locals 1
    .parameter

    .prologue
    .line 704
    iget-object v0, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    return-object v0
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 8
    .parameter "msg"

    .prologue
    const/16 v5, 0x8

    const/4 v6, 0x0

    .line 708
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    .line 710
    iget v4, p1, Landroid/os/Message;->what:I

    sparse-switch v4, :sswitch_data_0

    .line 825
    :cond_0
    :goto_0
    return-void

    .line 714
    :sswitch_0
    iget-object v4, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    invoke-static {v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$1(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Lcom/netease/newsreader/util/GroupListView;

    move-result-object v4

    invoke-virtual {v4}, Lcom/netease/newsreader/util/GroupListView;->refreshDone()V

    .line 715
    iget-object v4, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    invoke-static {v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$2(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Landroid/widget/LinearLayout;

    move-result-object v4

    invoke-virtual {v4, v5}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 716
    iget-object v4, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    invoke-static {v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$3(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Landroid/widget/ProgressBar;

    move-result-object v4

    invoke-virtual {v4, v5}, Landroid/widget/ProgressBar;->setVisibility(I)V

    .line 718
    iget-object v4, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    invoke-static {v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$4(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Ljava/util/List;

    move-result-object v4

    if-eqz v4, :cond_0

    iget-object v4, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    invoke-static {v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$4(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Ljava/util/List;

    move-result-object v4

    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v4

    if-lez v4, :cond_0

    .line 720
    iget-object v4, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    iget-object v5, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    invoke-static {v5}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$4(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Ljava/util/List;

    move-result-object v5

    invoke-static {v5}, Lcom/netease/newsreader/util/Tools;->toGropuList4Special(Ljava/util/List;)Ljava/util/ArrayList;

    move-result-object v5

    invoke-static {v4, v5}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$5(Lcom/netease/newsreader/activity/SpecialAritcleTwo;Ljava/util/ArrayList;)V

    .line 721
    iget-object v5, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    iget-object v4, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    invoke-static {v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$4(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Ljava/util/List;

    move-result-object v4

    invoke-interface {v4, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/util/Map;

    invoke-static {v5, v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$6(Lcom/netease/newsreader/activity/SpecialAritcleTwo;Ljava/util/Map;)V

    .line 722
    iget-object v4, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    invoke-static {v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$4(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Ljava/util/List;

    move-result-object v4

    invoke-interface {v4, v6}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    .line 724
    iget-object v4, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    invoke-static {v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$7(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Landroid/content/SharedPreferences;

    move-result-object v4

    iget-object v5, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    invoke-static {v5}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$8(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Ljava/lang/String;

    move-result-object v5

    const-string v6, ""

    invoke-interface {v4, v5, v6}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 725
    .local v0, banner:Ljava/lang/String;
    if-eqz v0, :cond_1

    const-string v4, ""

    invoke-virtual {v4, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-nez v4, :cond_1

    .line 726
    iget-object v4, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    invoke-static {v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$9(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Ljava/util/Map;

    move-result-object v4

    const-string v5, "banner"

    invoke-interface {v4, v5, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 727
    iget-object v4, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    iget-object v5, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    invoke-static {v5}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$9(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Ljava/util/Map;

    move-result-object v5

    iget-object v6, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    invoke-static {v6}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$10(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Landroid/widget/ImageView;

    move-result-object v6

    const-string v7, "banner"

    invoke-static {v4, v5, v6, v7}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$11(Lcom/netease/newsreader/activity/SpecialAritcleTwo;Ljava/util/Map;Landroid/widget/ImageView;Ljava/lang/String;)V

    .line 732
    :goto_1
    iget-object v4, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    invoke-static {v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$12(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Landroid/widget/TextView;

    move-result-object v4

    iget-object v5, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    invoke-static {v5}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$9(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Ljava/util/Map;

    move-result-object v5

    const-string v6, "title"

    invoke-interface {v5, v6}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 734
    iget-object v4, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    invoke-static {v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$13(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Landroid/widget/ListView;

    move-result-object v4

    iget-object v5, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    invoke-static {v5}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$14(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Landroid/widget/RelativeLayout;

    move-result-object v5

    invoke-virtual {v4, v5}, Landroid/widget/ListView;->removeHeaderView(Landroid/view/View;)Z

    .line 735
    iget-object v4, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    invoke-static {v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$13(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Landroid/widget/ListView;

    move-result-object v4

    iget-object v5, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    invoke-static {v5}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$14(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Landroid/widget/RelativeLayout;

    move-result-object v5

    invoke-virtual {v4, v5}, Landroid/widget/ListView;->addHeaderView(Landroid/view/View;)V

    .line 738
    iget-object v4, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    new-instance v5, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5$1;

    iget-object v6, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    invoke-static {v6}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$15(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Ljava/util/ArrayList;

    move-result-object v6

    invoke-direct {v5, p0, v6}, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5$1;-><init>(Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;Ljava/util/List;)V

    invoke-static {v4, v5}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$18(Lcom/netease/newsreader/activity/SpecialAritcleTwo;Lcom/netease/newsreader/util/GroupAdapter;)V

    .line 804
    iget-object v4, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    invoke-static {v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$19(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Lcom/netease/newsreader/util/GroupAdapter;

    move-result-object v4

    invoke-virtual {v4}, Lcom/netease/newsreader/util/GroupAdapter;->notifyDataSetChanged()V

    .line 806
    iget-object v4, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    invoke-static {v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$1(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Lcom/netease/newsreader/util/GroupListView;

    move-result-object v4

    iget-object v5, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    invoke-static {v5}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$19(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Lcom/netease/newsreader/util/GroupAdapter;

    move-result-object v5

    invoke-virtual {v4, v5}, Lcom/netease/newsreader/util/GroupListView;->setAdapter(Lcom/netease/newsreader/util/GroupAdapter;)V

    goto/16 :goto_0

    .line 729
    :cond_1
    iget-object v4, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    iget-object v5, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    invoke-static {v5}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$9(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Ljava/util/Map;

    move-result-object v5

    iget-object v6, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    invoke-static {v6}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$10(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Landroid/widget/ImageView;

    move-result-object v6

    const-string v7, "imgsrc"

    invoke-static {v4, v5, v6, v7}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$11(Lcom/netease/newsreader/activity/SpecialAritcleTwo;Ljava/util/Map;Landroid/widget/ImageView;Ljava/lang/String;)V

    goto :goto_1

    .line 813
    .end local v0           #banner:Ljava/lang/String;
    :sswitch_1
    iget-object v2, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v2, Landroid/widget/ImageView;

    .line 814
    .local v2, top_image:Landroid/widget/ImageView;
    iget-object v4, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    invoke-static {v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$7(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Landroid/content/SharedPreferences;

    move-result-object v4

    iget-object v5, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    invoke-static {v5}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$8(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Ljava/lang/String;

    move-result-object v5

    const-string v6, ""

    invoke-interface {v4, v5, v6}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 815
    .restart local v0       #banner:Ljava/lang/String;
    const-string v4, ""

    invoke-virtual {v4, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_0

    .line 816
    iget-object v4, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->this$0:Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    invoke-virtual {v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const v5, 0x7f02010c

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v4

    invoke-virtual {v2, v4}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    goto/16 :goto_0

    .line 820
    .end local v0           #banner:Ljava/lang/String;
    .end local v2           #top_image:Landroid/widget/ImageView;
    :sswitch_2
    iget-object v3, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v3, Landroid/widget/ImageView;

    .line 821
    .local v3, top_image2:Landroid/widget/ImageView;
    invoke-virtual {p1}, Landroid/os/Message;->getData()Landroid/os/Bundle;

    move-result-object v1

    .line 822
    .local v1, bundle:Landroid/os/Bundle;
    const-string v4, "headpic"

    invoke-virtual {v1, v4}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v4

    check-cast v4, Landroid/graphics/Bitmap;

    invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    goto/16 :goto_0

    .line 710
    :sswitch_data_0
    .sparse-switch
        0x0 -> :sswitch_0
        0xe -> :sswitch_1
        0xf -> :sswitch_2
    .end sparse-switch
.end method
